﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace ASmile.Win.Controls
{
    [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip)]
    public class ToolStripCheckBox : ToolStripControlHost
    {
        public ToolStripCheckBox()
            : base(new EditCheckBox())
        {
            _EditBox = Control as EditCheckBox;
            _EditBox.BackColor = Color.Transparent;
        }

        EditCheckBox _EditBox;

        [Description("文本框控件")]
        public EditCheckBox EditControl
        {
            get
            {
                return _EditBox;
            }
        }
        [Description("复选框是否选中")]
        public bool Checked
        {
            get { return _EditBox.Checked; }
            set { _EditBox.Checked = value; }
        }
    }
}